package com.blog.personalblog.service;

import com.blog.personalblog.bo.TagBO;
import com.blog.personalblog.config.page.PageRequest;
import com.blog.personalblog.entity.Tag;
import io.swagger.models.auth.In;

import java.util.List;

public interface TagService {
    List<Tag> getTagPage(PageRequest pageRequest);

    int saveTag(Tag tag);

    int updateTag(Tag tag);

    void deleteTag(Integer tagId);

    boolean batchAddTag(String tags) throws Exception;

    boolean batchDelTag(String ids);

    Tag findByTagName(String tagName);

    Tag findTagById(Integer tagId);

    List<Tag> getTagsByTagName(TagBO bo);
}
